package com.hmall.mapper;

import com.hmall.model.SysCustomerCredit;
import com.hmall.model.SysCustomerStatement;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface SysCustomerStatementMapper extends MyMapper<SysCustomerStatement> {

    SysCustomerStatement selectAccount(@Param("customerId") Integer customerId, @Param("year") Integer year, @Param("month") Integer month);

//    void insertImg(@Param("customerId") Integer customerId, @Param("year") Integer year, @Param("month") Integer month, @Param("img") String img);

    void updateImg(@Param("customerId") Integer customerId, @Param("year") Integer year, @Param("month") Integer month, @Param("img") String img);

    void updatePayment(@Param("year") Integer year, @Param("month") Integer month, @Param("price") BigDecimal price, @Param("customerId") Integer customerId);

    List<SysCustomerStatement> selectByCustomerId(Integer customerId);

    List<SysCustomerStatement> selectList(@Param("customerId") Integer customerId, @Param("year") Integer year, @Param("month") Integer month);
}